package com.foreknow.elmboot_demo.service.impl;

import com.foreknow.elmboot_demo.mapper.UserMapper;
import com.foreknow.elmboot_demo.po.User;
import com.foreknow.elmboot_demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User getUserByUserIdByPass(String userId, String password) {
        return userMapper.getUserByUserIdByPass(userId,password);
    }

    @Override
    public int getUserByUserId(String userId) {
        return userMapper.getUserByUserId(userId);
    }

    @Override
    public int saveUser(User user) {
        return userMapper.saveUser(user);
    }
}
